'''
Created on 20 janv. 2013

@author: rouis
'''
class Cell:
    def __init__(self,letter, position):
        self.letter = letter
        self.isActivated = False
        self.position = position
       
    def get_letter(self):
        return self.letter
    
    def set_letter(self, car):
        self.letter = car
    
    def get_position(self):
        return self.position
   
    def set_position(self,position):
        self.position = position
        
    '''activate the cell only if it is empty'''
    def activateCell(self):
        if(self.letter == " "):
            self.isActivated = True
            
    def disactivateCell(self):
        self.isActivated = False
            
    def __str__(self):
        print "Cell(",self.position[0],",",self.position[1],"):", self.letter
        

        
        